<?php
include_once '../Class/DB.php';
@session_id(SID);
@session_start();
header("Content-type: text/html; charset=utf-8");
$db=new DB();
$pid=0;
$content=$_POST["msg"];
$uid=$_SESSION["User"]["uid"];
$db->insert_message($pid, $uid, $content, 0);
//header("Location:index.php");
?>
<script language="JavaScript">
window.location.href="index.php";
</script>
